package com.ruoyi.customerSample.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 退样明细单据对象 back_sample_detail
 * 
 * @author ruoyi
 * @date 2023-05-15
 */
@ApiModel("退样明细单据对象")
public class BackSampleDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 退样单id */
    @Excel(name = "退样单id")
    @ApiModelProperty(value = "退样单id")
    private String backId;

    /** 样品编号 */
    @Excel(name = "样品编号")
    @ApiModelProperty(value = "样品编号")
    private String sampleNum;

    /** 样品名称 */
    @Excel(name = "样品名称")
    @ApiModelProperty(value = "样品名称")
    private String sampleName;

    /** 出厂编号 */
    @Excel(name = "出厂编号")
    @ApiModelProperty(value = "出厂编号")
    private String proNum;

    /** 收样时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收样时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "收样时间")
    private Date receiveTime;

    /** 退样时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退样时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "退样时间")
    private Date backTime;

    /** 退样状态 */
    @Excel(name = "退样状态")
    @ApiModelProperty(value = "退样状态")
    private String state;

    /** 排序 */
    @ApiModelProperty(value = "排序")
    private String sorts;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setBackId(String backId) 
    {
        this.backId = backId;
    }

    public String getBackId() 
    {
        return backId;
    }
    public void setSampleNum(String sampleNum) 
    {
        this.sampleNum = sampleNum;
    }

    public String getSampleNum() 
    {
        return sampleNum;
    }
    public void setSampleName(String sampleName) 
    {
        this.sampleName = sampleName;
    }

    public String getSampleName() 
    {
        return sampleName;
    }
    public void setProNum(String proNum) 
    {
        this.proNum = proNum;
    }

    public String getProNum() 
    {
        return proNum;
    }
    public void setReceiveTime(Date receiveTime) 
    {
        this.receiveTime = receiveTime;
    }

    public Date getReceiveTime() 
    {
        return receiveTime;
    }
    public void setBackTime(Date backTime) 
    {
        this.backTime = backTime;
    }

    public Date getBackTime() 
    {
        return backTime;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }

    public String getSorts() {
        return sorts;
    }

    public void setSorts(String sorts) {
        this.sorts = sorts;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("backId", getBackId())
            .append("sampleNum", getSampleNum())
            .append("sampleName", getSampleName())
            .append("proNum", getProNum())
            .append("receiveTime", getReceiveTime())
            .append("backTime", getBackTime())
            .append("state", getState())
            .toString();
    }
}
